import http from "@/service/http";
import * as T from './types'

export const loginApi : T.loginApi = {
  login(params: T.loginParams){
    return http.post('/api/login', params)
  }
}
export const getUserInfo: T.getUserInfoApi = {
  getUserInfo(userId: string){
    return http.post('/api/userInfo', userId)
  }
}
